
package JET.Events;

import JET.physics.bodies.Body;
import JET.physics.Mass;
import java.util.ArrayList;

/**
 *
 * @author 057Ry
 */
public class BodyEvent extends JETEvent {

    public Body body1,
                body2;

    public ArrayList<Mass> mList1,
                           mList2;

    public BodyEvent() {
        System.out.println("BodyEvent constructor called(). evt="+this);
    }

    public BodyEvent(Body body1, Body body2, ArrayList<Mass> mList1, ArrayList<Mass> mList2) {
        this.body1 = body1;
        this.body2 = body2;
        this.mList1 = mList1;
        this.mList2 = mList2;
        System.out.println("BodyEvent constructor called(). evt="+this);
    }

    @Override
    public String toString() {
        return "BodyEvent[id:"+id+", date:"+date+", body1:"+body1+", body2:"+body2;
    }
}
